package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Statement {

    public static final Integer STATUS_CONSUME = 0;//消费中
    public static final Integer STATUS_PAID = 1;//已支付

    private Long id;

    private String customerName;

    private String customerPhone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date actualArrivalTime;

    private String licensePlate;

    private String carSeries;

    private Integer serviceType;

    private Long appointmentId;

    private Integer status = STATUS_CONSUME;

    private Date payTime;

    private Long payeeId;

    private User payee;

    private BigDecimal totalAmount = new BigDecimal(0);

    private BigDecimal totalQuantity = new BigDecimal(0);

    private BigDecimal discountAmount = new BigDecimal(0);

    private Date createTime;

    private String info;

}